let t = require;
let e = module;
let o = e.exports;
o.default = e.exports;

('use strict');
console.log('start');
var _n116,
  i =
    (this && this.__extends) ||
    ((_n116 = function n(t, e) {
      return (_n116 =
        Object.setPrototypeOf ||
        ({
          __proto__: []
        } instanceof Array &&
          function (t, e) {
            t.__proto__ = e;
          }) ||
        function (t, e) {
          for (var o in e) {
            Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
          }
        })(t, e);
    }),
    function (t, e) {
      function o() {
        this.constructor = t;
      }
      _n116(t, e),
        (t.prototype =
          null === e
            ? Object.create(e)
            : ((o.prototype = e.prototype), new o()));
    });
Object.defineProperty(o, '__esModule', {
  value: !0
}),
  (o.LangCfg = void 0);
var r = t('AbsConfig'),
  a = t('GlobalEventMrg'),
  s = t('LangData'),
  c = t('App'),
  l = (function (t) {
    function e() {
      return t.call(this, s.LangData) || this;
    }
    return (
      i(e, t),
      Object.defineProperty(e, 'ins', {
        get: function get() {
          return null == this._ins && (this._ins = new e()), this._ins;
        },
        enumerable: !1,
        configurable: !0
      }),
      (e.setLang = function (t) {
        var e = c.LanguageType[t];
        this._lang != e &&
          ((this._lang = e), a.default.emit(a.GlobalEvent.LangChanged));
      }),
      (e.isLang = function (t) {
        var e = c.LanguageType[t];
        console.log(t, c.LanguageType, this._lang);
        return this._lang == e;
      }),
      (e.prototype.getContent = function (t, o) {
        void 0 === o && (o = null);
        var n = this.getData(t);
        if (n) {
          var i = n[e._lang];
          if (o)
            for (var r in o) {
              i = i.replace('{' + r + '}', o[r]);
            }
          return i;
        }
        return '';
      }),
      e
    );
  })(r.default);
(o.LangCfg = l), console.log('end');
module.exports = e.exports;
